import logging
from colorlog import ColoredFormatter

log_level = logging.DEBUG
log_format = "%(log_color)s%(asctime)s %(levelname)s %(filename)s:%(lineno)d : %(message)s %(reset)s"

logging.root.setLevel(log_level)

formatter = ColoredFormatter(log_format)

stream_handler = logging.StreamHandler()
stream_handler.setLevel(log_level)
stream_handler.setFormatter(formatter)

logger = logging.getLogger()
logger.setLevel(log_level)
logger.addHandler(stream_handler)
